home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / deck.exe / DECK.DOC < prev    next >
Text File  |  1991-07-21  |  2KB  |  31 lines

  1.  
  2.  
  3.     Class DECK - Basic card handling.  
  4.     Version 1.0
  5.     By Paul D'Ascensio
  6.     July 20, 1991
  7.  
  8. This is my first attempt at building a class using C++.  This class is to
  9. be used as a starting point for card games (I hope).  It allows you to 
  10. create a deck of cards using one or more decks.  The member functions 
  11. allow you the shuffle the deck (Shuffle), cut the deck (CutDeck), take the
  12. next card (TakeNextCard), and get the values of the CARD struct for any 
  13. card in the deck.  I also added a function that checks to see if the next
  14. card is the last card.
  15.  
  16. I am also in the process of trying to derive classes from DECK that would
  17. handle poker decks, blackjack decks, and solitaire decks.
  18.  
  19. I am also in the process of trying to derive classes from DECK that would
  20. handle poker decks, blackjack decks, and solitaire decks.I am hereby donating this code to the public domain so anyone can use it,
  21. laugh at it, make it better, or maybe tell me where I've gone wrong.  You
  22. may use this code in any program (personal or commercial) without obligation
  23. and at your own risk (remember it's my initial class).  If you do use this
  24. code, please drop me note.  If you make this code better, please share it
  25. with me and others in the BPROGB forum on Compuserve.
  26.  
  27.                                         Thank you and Good Luck!
  28.                                         
  29.                                            Paul D'Ascensio
  30.                                            76040,33
  31.